package com.yesep.learn.design.behavioral.visitor;

public class GuestVisitor implements IVisitor {

    @Override
    public void feedCat(Cat cat) {
        System.out.printf("The %s is feeding the %s %s. \n", this.getClass().getSimpleName(), Cat.class.getSimpleName(), cat.getName());

    }

    @Override
    public void feedDog(Dog dog) {
        System.out.printf("The %s is feeding the %s %s. \n", this.getClass().getSimpleName(), Dog.class.getSimpleName(), dog.getName());
    }
}
